import apiClient from '@/api/apiClient';
// 查找
const getParametersList = (data?: any) =>
  apiClient.get({ url: '/management/parameters', params: data });

// 新增
const createParameter = (data?: any) => apiClient.post({ url: '/management/parameter', data });

// 删除
const deleteParameter = (data: any) => apiClient.delete({ url: `/management/parameter`, data });

// 修改
const updateParameter = (id: number, data?: any) =>
  apiClient.put({ url: `/management/parameter/${id}`, data });

export default {
  getParametersList,
  createParameter,
  deleteParameter,
  updateParameter,
};
